set -ex

build_cmd="g++ --std=c++11 case.cpp"

export CUDA_VISIBLE_DEVICES=2
ARCH=75
# export CUDA_VISIBLE_DEVICES=1
# ARCH=86
# export CUDA_VISIBLE_DEVICES=0
# ARCH=89
# export CUDA_VISIBLE_DEVICES=1
# ARCH=75

eval=1
perf=1

if [ $eval -eq 1 ]; then
    ${build_cmd} -DEVAL
    cmd="./a.out"
    $cmd
fi
if [ $perf -eq 1 ]; then
    ${build_cmd} -DPERF
    cmd="./a.out"
    $cmd
fi